3.909 \(\int \frac{A+B x}{A^2+2 A B x+B^2 x^2} \, dx\)

Optimal. Leaf size=10 \[ \frac{\log (A+B x)}{B} \]

[Out]

Log[A + B*x]/B

________________________________________________________________________________________

Rubi [A]  time = 0.0023645, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {27, 31} \[ \frac{\log (A+B x)}{B} \]

Antiderivative was successfully verified.

[In]

Int[(A + B*x)/(A^2 + 2*A*B*x + B^2*x^2),x]

[Out]

Log[A + B*x]/B

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{A+B x}{A^2+2 A B x+B^2 x^2} \, dx &=\int \frac{1}{A+B x} \, dx\\ &=\frac{\log (A+B x)}{B}\\ \end{align*}

Mathematica [A]  time = 0.0010704, size = 10, normalized size = 1. \[ \frac{\log (A+B x)}{B} \]

Antiderivative was successfully verified.

[In]

Integrate[(A + B*x)/(A^2 + 2*A*B*x + B^2*x^2),x]

[Out]

Log[A + B*x]/B

________________________________________________________________________________________

Maple [A]  time = 0., size = 11, normalized size = 1.1 \begin{align*}{\frac{\ln \left ( Bx+A \right ) }{B}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)/(B^2*x^2+2*A*B*x+A^2),x)

[Out]

ln(B*x+A)/B

________________________________________________________________________________________

Maxima [B]  time = 1.03434, size = 30, normalized size = 3. \begin{align*} \frac{\log \left (B^{2} x^{2} + 2 \, A B x + A^{2}\right )}{2 \, B} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(B^2*x^2+2*A*B*x+A^2),x, algorithm="maxima")

[Out]

1/2*log(B^2*x^2 + 2*A*B*x + A^2)/B

________________________________________________________________________________________

Fricas [A]  time = 1.74428, size = 22, normalized size = 2.2 \begin{align*} \frac{\log \left (B x + A\right )}{B} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(B^2*x^2+2*A*B*x+A^2),x, algorithm="fricas")

[Out]

log(B*x + A)/B

________________________________________________________________________________________

Sympy [A]  time = 0.183329, size = 7, normalized size = 0.7 \begin{align*} \frac{\log{\left (A + B x \right )}}{B} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(B**2*x**2+2*A*B*x+A**2),x)

[Out]

log(A + B*x)/B

________________________________________________________________________________________

Giac [A]  time = 1.22143, size = 15, normalized size = 1.5 \begin{align*} \frac{\log \left ({\left | B x + A \right |}\right )}{B} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)/(B^2*x^2+2*A*B*x+A^2),x, algorithm="giac")

[Out]

log(abs(B*x + A))/B